html, body {
	padding: 0;
	margin: 0;
	background-color: #000;
}
div, span, button {
	box-sizing: border-box;
	border: 0;
	margin: 0;
	padding: 0;
}


.game {
	width: 400px;
	height: 700px;
	background-color: #1f2022;
	border: 1px solid #fff;
	border-radius: 10px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}
.player { padding: 10px 10px;	display: flex;align-items: center; }
.player .photo {
	width: 44px;
	height: 44px;
	border-radius: 5px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #ebebeb;
}
.player .photo img { width: 80%; height: 80%; }
.player .HP {	flex: 1; position: relative; }
.player .HP .uni-progress { border-radius: 5px; overflow: hidden; }
.player .HP .hp-num { position: absolute; left: 50%; top: 22px; transform: translate(-50%, -50%); font-weight: bold; }
.player.player-1 .photo { margin-right: 10px; }
.player.player-2 .photo { margin-left: 10px; }
.player.player-2 .HP .uni-progress { transform: rotateY(180deg); }
.player.red .photo { background-color: #f56c6c; }
.player.blue .photo { background-color: #94bcff; }

.progress {
	width: 100%;
	height: 44px;
	background-color: #ebebeb;
	border-radius: 5px;
	overflow: hidden;
}
.progress .progress-bar {
	width: 100%;
	height: 100%;
}

.chess-item {
	width: 44px;
	height: 44px;
	border-radius: 5px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #ebebeb;
}
.chess-item img { width: 80%; height: 80%; }
.map { height: 100%; flex: 1; padding: 0 10px; }
.map .map-box { height: 100%; padding: 10px 0; display: flex; justify-content: center; }

.chess-player { width: 54px; }
.chess-player.chess-player1 { padding-right: 10px; }
.chess-player.chess-player2 { padding-left: 10px; display: flex; flex-direction: column; justify-content: flex-end; }
.chess-player .red { background-color: #f56c6c; }
.chess-player .blue { background-color: #94bcff; }
.chess-player .die { filter: grayscale(1); }

.chess-play {
	flex: 1; height: 100%; overflow: auto; background-color: #ab865a; border-radius: 5px;
	display: flex; flex-direction: column; justify-content: space-evenly; padding: 3px;
}
.chess-play .chess-play-row { display: flex; align-items: center; justify-content: space-evenly; }
.chess-play .chess-block {
	padding: 5px 5px 9px; border-radius: 5px; display: flex; align-items: center; justify-content: center;
	background-color: #f0cc92; width: 54px; height: 58px;
}
.chess-play .chess-item {
	user-select: none; transition: all .1s;
}
.chess-play .chess-item.no { background-color: #1aaf5d; box-shadow: 0 4px 0 #0a7237; }
.chess-play .chess-item.red { background-color: #f56c6c; box-shadow: 0 4px 0 #b34e4e; }
.chess-play .chess-item.blue { background-color: #94bcff; box-shadow: 0 4px 0 #6c8aba; }
.chess-play .chess-item.selected { transform: translateY(-8px); }

.chess-badge {
	position: relative;
}
.chess-badge + .chess-badge {
	margin-top: 10px;
}
.badge {
	position: absolute;
	padding: 3px 6px;
	border-radius: 50%;
	overflow: hidden;
	color: #fff;
	background-color: red;
	font-size: 12px;
	line-height: 1;
}
.badge.left-top {
	left: -10%;
	top: -10%;
}
.badge.right-top {
	right: -10%;
	top: -10%;
}

.win {
	width: 300px; border-radius: 10px; background-color: rgb(119, 212, 168); margin: 0 auto; padding: 10px;
}
.win .win-box {
	width: 100%; background-color: rgb(254,255,241); border-radius: 5px; padding: 35px 15px 25px; position: relative;
}
.win .win-title {
	width: 60%; padding: 10px;text-align: center;background-color: rgb(255,107,103);clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
	position: absolute;color: #fff;font-weight: bold;font-size: 20px;left: 50%;transform: translateX(-50%);top: -30px;
}
.win .win-content {
	width: 100%;min-height: 100px; border-radius: 10px;border: 1px solid rgb(251,206,87); background-color: rgb(255,243,205); box-shadow: inset 0 0 10px 0px rgba(251,206,87, .8);
	display: flex;align-items: center;justify-content: center;color: rgb(183,92,77); font-weight: bold; font-size: 20px;
}
.win .rule { width: 100%;padding: 15px;text-align: justify; }
.win .rule .rule-item { font-size: 14px; }
.win .rule .rule-item + .rule-item { margin-top: 10px; }
.win-btns {
	display: flex;align-items: center;justify-content: space-between;padding: 20px 10px;
}
.win-btns .win-btn {
	flex: 1;
	font-size: 17px;
	color: white;
	background: linear-gradient(to bottom, rgb(244,200,77), rgb(248,234,111));
	font-weight: bold;
	box-shadow: 0 4px 2px 0 rgb(168,134,45);
	-webkit-text-stroke: 1px rgb(168,134,45);
	padding: 5px 0;
	border-radius: 4px;
}
.win-btns .win-btn + .win-btn { margin-left: 20px; }

/* 弹框 */
.mask {
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	background-color: rgba(0,0,0,.6);
	display: flex;
	align-items: center;
	justify-content: center;
}
.mask .mask-wrapper {
	width: 300px;
}
